<?php
// +----------------------------------------------------------------------
// | 管理员模型
// +----------------------------------------------------------------------
// | Author: myh
// +----------------------------------------------------------------------
namespace app\common\model;

class SysUserModel extends BaseModel
{   
    protected $table = 'ds_sys_user';

    public static $status = [0=>'禁用',1=>'正常'];
    

    //根据账号搜索
    public function searchAccountAttr($query, $value, $data)
    {   
        if(!empty($value)){
            $query->where('account', $value);
        }
    }

}
